﻿using System;

class Program
{
    static void Main()
    {
        int first = int.Parse(Console.ReadLine());
        int second = int.Parse(Console.ReadLine());
        int third = int.Parse(Console.ReadLine());
        int fourth = int.Parse(Console.ReadLine());
        int fifth = int.Parse(Console.ReadLine());
        if (first > second && first > third && first > fourth && first > fifth)
        {
            Console.WriteLine(first);
        }
        if (second > first && second > third && second > fourth && second > fifth)
        {
            Console.WriteLine(second);
        }
        if (third > first && third > second && third > fourth && third > fifth)
        {
            Console.WriteLine(third);
        }
        if (fourth > first && fourth > second && fourth > third && fourth > fifth)
        {
            Console.WriteLine(fourth);
        }
        if (fifth > first && fifth > second && fifth > third && fifth > fourth)
        {
            Console.WriteLine(fifth);
        }
    }
}